package greet

import (
	"github.com/zeromicro/go-zero/tools/goctl/example/api/internal/logic"
	"github.com/zeromicro/go-zero/tools/goctl/example/api/internal/svc"
)

func initHandler(svc *svc.ServiceContext) []Handler {
	// new logics
	var (
		adminLogic = logic.NewAdmin(svc)
		roleLogic  = logic.NewRole(svc)
	)

	// new handlers
	var (
		admin = NewAdmin(svc, adminLogic, roleLogic)
	)

	return []Handler{
		admin,
	}
}
